home *** CD-ROM | disk | FTP | other *** search
- #ifndef __SOLUTION_H__
- #define __SOLUTION_H__
-
- // Do not modify this file
-
- #include <MacTypes.h>
- #include <Files.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
-
- const int kMaxHandleSize = 1000000;
-
- enum {
- kActionMove = 1,
- kActionInsert = 2,
- kActionDelete = 3,
- kActionSearch = 4,
- kActionSearchAndReplace = 5
- };
-
- enum {
- kFlagCaseSenstitiveBit = 0,
- kFlagGlobalBit = 1,
- kFlagBackwardsBit = 2
- };
-
- typedef struct ActionRecord {
- UInt32 action;
- SInt32 amount;
- UInt32 flags;
- Str255 search;
- Str255 replace;
- } ActionRecord;
-
- pascal void TextProcess( Handle data, UInt32 action_count, ActionRecord *actions );
-
- #ifdef __cplusplus
- }
- #endif // __cplusplus
-
- #endif // __SOLUTION_H__